.class public Lcom/example/m6shop/BluetoothsetActivity;
.super Landroid/app/Activity;
.source "BluetoothsetActivity.java"


# instance fields
.field private back:Landroid/widget/ImageView;

.field private bluename:Landroid/widget/TextView;

.field private blueprint:Landroid/widget/LinearLayout;

.field m:Lmyapp/MyApp;

.field preferences:Landroid/content/SharedPreferences;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 16
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 17
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/example/m6shop/BluetoothsetActivity;->m:Lmyapp/MyApp;

    .line 16
    return-void
.end method


# virtual methods
.method public init()V
    .locals 1

    .prologue
    .line 70
    const v0, 0x7f0700e5

    invoke-virtual {p0, v0}, Lcom/example/m6shop/BluetoothsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6shop/BluetoothsetActivity;->bluename:Landroid/widget/TextView;

    .line 71
    const v0, 0x7f0700e6

    invoke-virtual {p0, v0}, Lcom/example/m6shop/BluetoothsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6shop/BluetoothsetActivity;->blueprint:Landroid/widget/LinearLayout;

    .line 72
    const v0, 0x7f0700cb

    invoke-virtual {p0, v0}, Lcom/example/m6shop/BluetoothsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/example/m6shop/BluetoothsetActivity;->back:Landroid/widget/ImageView;

    .line 73
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 24
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 25
    const v1, 0x7f03001f

    invoke-virtual {p0, v1}, Lcom/example/m6shop/BluetoothsetActivity;->setContentView(I)V

    .line 26
    invoke-virtual {p0}, Lcom/example/m6shop/BluetoothsetActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lmyapp/MyApp;

    iput-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->m:Lmyapp/MyApp;

    .line 27
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 28
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 30
    invoke-virtual {p0}, Lcom/example/m6shop/BluetoothsetActivity;->init()V

    .line 32
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->back:Landroid/widget/ImageView;

    new-instance v2, Lcom/example/m6shop/BluetoothsetActivity$1;

    invoke-direct {v2, p0}, Lcom/example/m6shop/BluetoothsetActivity$1;-><init>(Lcom/example/m6shop/BluetoothsetActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 38
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->blueprint:Landroid/widget/LinearLayout;

    new-instance v2, Lcom/example/m6shop/BluetoothsetActivity$2;

    invoke-direct {v2, p0}, Lcom/example/m6shop/BluetoothsetActivity$2;-><init>(Lcom/example/m6shop/BluetoothsetActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 45
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->bluename:Landroid/widget/TextView;

    new-instance v2, Lcom/example/m6shop/BluetoothsetActivity$3;

    invoke-direct {v2, p0}, Lcom/example/m6shop/BluetoothsetActivity$3;-><init>(Lcom/example/m6shop/BluetoothsetActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 55
    return-void
.end method

.method protected onStart()V
    .locals 4

    .prologue
    .line 60
    const-string v1, "blueInfo"

    const/4 v2, 0x0

    invoke-virtual {p0, v1, v2}, Lcom/example/m6shop/BluetoothsetActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->preferences:Landroid/content/SharedPreferences;

    .line 61
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->preferences:Landroid/content/SharedPreferences;

    if-nez v1, :cond_0

    .line 62
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->bluename:Landroid/widget/TextView;

    const-string v2, "\u5c1a\u672a\u8fde\u63a5\u84dd\u7259\u8bbe\u5907"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 68
    :goto_0
    return-void

    .line 65
    :cond_0
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->preferences:Landroid/content/SharedPreferences;

    const-string v2, "name"

    const-string v3, ""

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 66
    .local v0, "account":Ljava/lang/String;
    iget-object v1, p0, Lcom/example/m6shop/BluetoothsetActivity;->bluename:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 67
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    goto :goto_0
.end method
